import request from '@/utils/request'

// 查询库存价值
export function getAllPrice() {
  return request({
    url: '/store/warehouseGoods/getAllPrice',
    method: 'get',
  })
}
//获取所有应收
export function getAllAmount() {
  return request({
    url: '/finance/reciveReq/getAllAmount',
    method: 'get',
  })
}
//获取所有应付
export function getAllMustPay() {
  return request({
    url: '/finance/buyMustPay/getAllMustPay',
    method: 'get',
  })
}
//获取所有客户数量
export function getCusCount() {
  return request({
    url: '/basedata/customer/getCusCount',
    method: 'get',
  })
}
//获取所有供应商数量
export function getSupCount() {
  return request({
    url: '/basedata/supplies/getSupCount',
    method: 'get',
  })
}
//获取销售订单今日笔数及金额
export function getSaleOrderCount() {
  return request({
    url: '/xiaoshou/order/getSaleOrderCount',
    method: 'get',
  })
}
//获取今日销售应收订单笔数及金额
export function getSaleOrderReciveCountAndMoney() {
  return request({
    url: '/finance/reciveReq/getSaleOrderReciveCountAndMoney',
    method: 'get',
  })
}
//获取今日销售收款单笔数及金额
export function getSaleOrderReciveOrderCountAndMoney() {
  return request({
    url: '/finance/reciveOrder/getSaleOrderReciveOrderCountAndMoney',
    method: 'get',
  })
}
//获取今日采购订单笔数及金额
export function getBuyOrderCountAndMoney() {
  return request({
    url: '/caigou/buyOrder/getBuyOrderCountAndMoney',
    method: 'get',
  })
}
//获取当日采购应付笔数及金额
export function getBuyCountAndMoney() {
  return request({
    url: '/finance/buyMustPay/getBuyCountAndMoney',
    method: 'get',
  })
}
//获取当日采购付款笔数及金额
export function getBuyPayCountAndMoney() {
  return request({
    url: '/finance/payment/getBuyPayCountAndMoney',
    method: 'get',
  })
}
//获取销售退货订单今日笔数及金额
export function getSaleBackCountAndMoney() {
  return request({
    url: '/xiaoshou/saleBack/getSaleBackCountAndMoney',
    method: 'get',
  })
}
//获取今日销售应收订单笔数及金额
export function getPaySaleBackCountAndMoney() {
  return request({
    url: '/finance/buyMustPay/getPaySaleBackCountAndMoney',
    method: 'get',
  })
}
//获取今日销售收款单笔数及金额
export function getSaleBuckPayCountAndMoney() {
  return request({
    url: '/finance/payment/getSaleBuckPayCountAndMoney',
    method: 'get',
  })
}
//获取今日采购退货订单笔数及金额
export function getBuyBackCountAndMoney() {
  return request({
    url: '/caigou/buyBackOrder/getBuyBackCountAndMoney',
    method: 'get',
  })
}
//获取采购退货应付笔数及金额

export function getBuyBackReciveCountAndMoney() {
  return request({
    url: '/finance/reciveReq/getBuyBackReciveCountAndMoney',
    method: 'get',
  })
}

//获取今日采购退货收款单笔数及金额
export function getBuyBackReciveOrderCountAndMoney() {
  return request({
    url: '/finance/reciveOrder/getBuyBackReciveOrderCountAndMoney',
    method: 'get',
  })
}
//获取销售订单各阶段订单数量
export function getSaleOrderThreeCountToIndex() {
  return request({
    url: '/xiaoshou/order/getThreeCountToIndex',
    method: 'get',
  })
}

//获取付款单各阶段订单数量
export function getReceiveOrderThreeCountToIndex() {
  return request({
    url: '/finance/reciveOrder/getReceiveOrderThreeCountToIndex',
    method: 'get',
  })
}